home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invenzioni & Inventori
/
Invenzioni and Inventori (Eclectica Publishing) (1996).ISO
/
invenzio
/
vivid
/
loader.dir
/
00008_Script_8
< prev
next >
Wrap
Text File
|
1983-01-30
|
2KB
|
84 lines
on mouseUp
GLOBAL LISTA_2, TIPO, NOME, MATERIALE, MYWINDOW,DATI_BITMAP,PROGRESSIVE,LIBRO,strada,NOMELIBRO,utente
global nome_hd
if the machinetype = 256 then
set strada to nome_hd&":\deamm\invinvit\libri\"
else
set strada to nome_hd&":deamm:invinvit:libri:"
end if
SET NOME =THE TEXT OF CAST 4
SET LIBRO =THE TEXT OF CAST 6
SET NOMELIBRO =THE TEXT OF CAST 6
set utente to the text of cast 21
if tipo ="bitmap" then
global mywindow2,LIBRO
SET LL=1
SET LLL=0
REPEAT WHILE LL<=the number of lines in FIELD 17 THEN
IF LIBRO=word 1 of line LL of (THE TEXT OF CAST 17) THEN SET LLL=1
SET LL=LL+1
END REPEAT
if the machinetype = 256 then
set pippod to char 1 to 2 of the pathName&"\invenzio\vivid\new.dir"
else
set pippod to "invenzioni:invenzio:vivid:new.dir"
end if
IF LLL=0 THEN
-- char 1 to 2 of the pathName&"\invenzio\vivid\vivid04"
set mywindow2 to window pippod
SET X= pippod
ELSE
set mywindow2 to window strada&LIBRO&".dir"
SET X= strada&LIBRO
global filex,pointerx
set filex=fileio(mnew,"read",strada&LIBRO&".BOK")
if objectp(filex) then
set lista_2 to value(filex(mReadFile))
filex(mdispose)
else
set lista_2 to [:]
end if
END IF
SET DATI_BITMAP=materiale
TELL WINDOW X
COPY_IT
END TELL
SET MATERIALE=PROGRESSIVE-1
END IF
addProp lista_2, #TIPO,"#"&TIPO
addProp lista_2, #NOME,NOME
addProp lista_2, #MATERIALE, MATERIALE
global gwriteobject
PUT FILEIO(MNEW,"WRITE",strada&LIBRO&".BOK") INTO gwriteobject
gwriteobject(MWRITESTRING,STRING(LISTA_2))
gwriteobject(MDISPOSE)
global filename
set filename to libro
FORGET MYWINDOW
end